package Medarbejdere;

public class EmployeeTester {
	public static void main(String[] args){
		//Add new employee. Parameters are Name,Salary (String,double).
		Employee empl1 = new Employee("Dr. John Sunfun", 45000);
		
		//Testing public methods:
		//Testing getName:
		System.out.println("Employee name: " + empl1.getName());
		System.out.println("Expected: Dr. John Sunfun");
		System.out.println("+-----------------------+");
		//testing getSalary:
		System.out.print("Employee salary: ");
		System.out.format("%.2f%n", empl1.getSalary());
		System.out.println("Expected: 45000,00");
		System.out.println("+-----------------------+");		
		//testing raiseSalary:
		empl1.raiseSalary(10);
		System.out.print("10% raised salary: ");
		System.out.format("%.2f%n", + empl1.getSalary());
		System.out.println("Expected: 49500,00");
		
	}
}
